package cn.edu.hznu.notebook.service;

import java.util.List;

import cn.edu.hznu.notebook.entity.Note;
import cn.edu.hznu.notebook.entity.Notebook;

public interface NoteService {
	
	public void addNewNote(Note note) throws Exception;
	
	public Note getNoteById(Integer id);
	
	public List<Note> getNotesByNotebook(Notebook notebook);
	
	public void updateNoteInfo(Note note) throws Exception;
	
	public void deleteNote(Note note) throws Exception;
	
	public void deleteNote(Integer id) throws Exception;
}
